#include <linux/memblock.h>
#include <linux/printk.h>
#include <linux/mm_init.h>
#include <linux/mmzone.h>

#include <msh/export.h>

static int mbadd(int argc, char **argv)
{
    memblock_add(0x81200000 + 10*1024*1024, 2*1024*1024);

    return 0;
}
MSH_CMD_EXPORT(mbadd, add memblock);

static int mballoc(int argc, char **argv)
{
    void *p;

    p = memblock_alloc(4096, 0);

    printk("memblock_alloc %p\n", p);

    return 0;
}
MSH_CMD_EXPORT(mballoc, alloc memblock);
